package cn.itcast.itcaststore.web.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

@WebFilter("/client/product_list.jsp")
public class ProductsFilter implements Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException {
        request.getRequestDispatcher("/ListProductServlet").forward(request,response );
        chain.doFilter(request, response);
    }

    public void init(FilterConfig config) throws ServletException {

    }

}
